/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 *
 * @author glenn
 */
public class MainLayout extends DockLayoutPanel {

    SimplePanel contentPanel;
    SimplePanel headerPanel;
    MainMenu mainMenu;
    SimplePanel footerPanel;
    SimplePanel leftPanel;

    public MainLayout(Unit unit) {
        super(unit);


        contentPanel = new SimplePanel();
        headerPanel = new SimplePanel();
        headerPanel.add(new HTML("header"));
        footerPanel = new SimplePanel();
        footerPanel.add(new HTML("footer"));

        mainMenu = new MainMenu();
        leftPanel = new SimplePanel();
        leftPanel.add(mainMenu);


        addNorth(headerPanel, 6);
        addSouth(footerPanel, 4);
        addWest(leftPanel, 23);
        add(contentPanel);
    }

    public SimplePanel getContentPanel() {
        return contentPanel;
    }

    public void setContentPanel(SimplePanel contentPanel) {
        this.contentPanel = contentPanel;
    }

    public SimplePanel getHeaderPanel() {
        return headerPanel;
    }

    public void setHeaderPanel(SimplePanel headerPanel) {
        this.headerPanel = headerPanel;
    }

    public SimplePanel getFooterPanel() {
        return footerPanel;
    }

    public void setFooterPanel(SimplePanel footerPanel) {
        this.footerPanel = footerPanel;
    }

    public SimplePanel getLeftPanel() {
        return leftPanel;
    }

    public void setLeftPanel(SimplePanel leftPanel) {
        this.leftPanel = leftPanel;
    }
}
